package com.lagou.bean;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ComsumerComponet {

    /**
     * @Reference 本质就是生成代理, 监听此服务并创建tcp连接
     * 即在监听zookeeper上此接口的服务发布
     *
     */
    @Reference
    private HelloService  helloService;
    public String  sayHello(String name){
        return  helloService.sayHello(name);
    }

}
